import request from '@/utils/request'

/**
 * 是否在打卡范围内
 * lat，lng
 */
export function isCheckInRange(data) {
	return request({
		url: '/studentAttend/isCheckInRange',
		method: 'post',
		data,
	})
}

/**
 * 获取打卡规则
 * ruleId
 */
export function getDetail(id) {
	return request({
		url: '/studentAttend/rule'+ id,
		method: 'get',
	})
}

/**
 * 签到
 * lat，lng，ruleId
 */
export function saveSignIn(data) {
	return request({
		url: '/studentAttend/signIn',
		method: 'post',
		data,
	})
}